#!/bin/sh

set -e

NAME=efa
DRIVER_VERSION=1.11.0
INSTALL_PATH=/usr/src/${NAME}-${DRIVER_VERSION}

cd $INSTALL_PATH
./autogen.sh
dkms add -m ${NAME} -v ${DRIVER_VERSION}
for kernel in $(/bin/ls /lib/modules); do
	dkms build -m ${NAME} -v ${DRIVER_VERSION} -k $kernel
	dkms install -m ${NAME} -v ${DRIVER_VERSION} -k $kernel
done

#DEBHELPER#
